#include<stdio.h>

int main(void)
{
    double x=100.0,y,a,b,c,d;
    scanf("%lf,%lf",&x,&y);
    printf("%lf %lf",x,y);
    a=x+y;
    b=x-y;
    c=x*y;
    d=x/y;
    printf("%lf %lf %lf %lf \n",a,b,c,d);
    return 0;
}

